package com.yxh.lib_base.util.permissions

import com.hjq.permissions.Permission

class XhPermissions {

    companion object{

        val CAMERA= Permission.CAMERA

    }


    /**
     * 权限组
     */
    object Group {
        /** 存储权限  */
        val STORAGE = arrayOf(
            Permission.READ_EXTERNAL_STORAGE,
            Permission.WRITE_EXTERNAL_STORAGE
        )

        /** 日历权限  */
        val CALENDAR = arrayOf(
            Permission.READ_CALENDAR,
            Permission.WRITE_CALENDAR
        )

        /** 联系人权限  */
        val CONTACTS = arrayOf(
            Permission.READ_CONTACTS,
            Permission.WRITE_CONTACTS,
            Permission.GET_ACCOUNTS
        )

        /** 蓝牙权限  */
        val BLUETOOTH = arrayOf(
            Permission.BLUETOOTH_SCAN,
            Permission.BLUETOOTH_CONNECT,
            Permission.BLUETOOTH_ADVERTISE
        )
    }

}